package com.test.lotterysystem.Controller;

import com.test.lotterysystem.Controller.Param.DrawPrizeParam;
import com.test.lotterysystem.Service.DrawPrizeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/draw")
@RestController
@Slf4j
public class DrawPrizeController {
    @Autowired
    private DrawPrizeService drawPrizeService;

    @RequestMapping("/prize")
    public Boolean drawPrize(DrawPrizeParam drawPrizeParam) {
        log.info("drawPrizeParam为：--------{}", drawPrizeParam);
        drawPrizeService.saveDrawPrizeInfo(drawPrizeParam);
        return true;
    }
}
